package imgshare.service;

import imgshare.model.User;

import java.util.List;

public interface UserService {


    User findByUsername(String username);

    User findByEmail(String email);

    void createUser(User user);

    Boolean existByUsername(String username);

    Boolean existByEmail(String email);

    void update(User user);

    User findOne(Integer id);

    List<User> findAll();

    List<User> findMyFollowingUsers(Integer userId);
}
